<?php

namespace Acme\StaffBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class AddCommentForm extends AbstractType {

  public function buildForm(FormBuilder $builder, array $options) {
    $builder->add('Text', 'textarea', array('attr'=>array('class'=>'tinymce', 'tinymce' => '{"theme":"simple"}'), 'label' => 'Текст Отзыва'));
  }

  public function getDefaultOptions(array $options) {
    return array(
        'data_class' => 'Acme\StaffBundle\Entity\Comment',
    );
  }

  public function getName() {
    return 'AddComment';
  }

}

?>
